import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class Base{
  //默认主题色
  static final defaultColor = Color(0xFFFB7299);
  // 初始化设计稿尺寸
  static final double designWidth = 375.0;
  static final double designHeight = 1335.0;
  static final Size size = Size(designWidth, designHeight);

  static final double statusBarHeight = MediaQueryData.fromWindow(window).padding.top;
  double dp(double designValue) => ScreenUtil().setWidth(designValue);
}